# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-helper
_pkgname=helper
pkgver=2.4.2
pkgrel=3
pkgdesc="A Python library for quickly writing configurable applications and daemons"
url="https://helper.readthedocs.org/"
arch="noarch"
license="BSD-3-Clause"
replaces="py-helper" # for backwards compatibility
provides="py-helper=$pkgver-r$pkgrel" # for backwards compatibility
depends="python3 py3-yaml"
makedepends="python3-dev py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$builddir"
	python3 setup.py build
}

package() {
	cd "$builddir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="f25836eefda71b08c9d38569e1111220f8cde729de9cb5a99c2b8900ff99555066df9a47f19d9d5a9d070e1efa6b187f34b6a0d22fc1f571f5ab4ce87de23f14  helper-2.4.2.tar.gz"
